package FileIOStream;

import java.io.File;

/**
 * @Author liangzai
 * @Description:
 */
public class Demo6 {
    public static void main(String[] args) {
        File file1 = new File("./src/test2");
        //file1.delete();
        File file = new File("./test1");
        boolean results = file.renameTo(file1);
        System.out.println(results);
    }
}
